import axios from 'axios';
const requests = axios.create({
  baseURL: 'http://localhost:3500',
  timeout: 3000,
  headers: { 'Content-Type': 'application/json' },
});
requests.interceptors.request.use((config) => {
  return config;
});
requests.interceptors.response.use(
  (res) => {
    return Promise.resolve(res.data);
  },
  (err) => {
    return Promise.reject(err);
  }
);
export default requests;
